<template>
  <view class="container">
    <view class="header">
      <view class="headericon">
        <uni-icons type="list" size="25" color="#fff"></uni-icons>
        <view style="margin-left: 500rpx">
          <uni-icons type="search" size="25" color="#fff"></uni-icons>
          <image src="../static/whiteedit.png" mode="" color="#fff" style="width: 40rpx; height: 40rpx; margin-left: 24rpx"></image>
        </view>
      </view>
      <view class="userinfo">
        <image src="/sub_goodstype/static/goodsimg.png" mode="" class="useravatar"></image>
        <view style="margin-left: 30rpx; margin-top: 10rpx">
          <view style="margin-bottom: 8rpx">玛丽娜</view>
          <view>188****8888</view>
        </view>
      </view>
    </view>
    <view class="option">
      <view>
        <image src="../static/purse.png" mode="" style="width: 72rpx; height: 72rpx; vertical-align: middle; margin-right: 20rpx"></image>
        <text>钱包</text>
      </view>
      <view>
        <uni-icons type="right" size="20"></uni-icons>
      </view>
    </view>
    <view class="option">
      <view>
        <image src="../static/mypush.png" mode="" style="width: 72rpx; height: 72rpx; vertical-align: middle; margin-right: 20rpx"></image>
        <text>我的发布</text>
      </view>
      <view>
        <uni-icons type="right" size="20"></uni-icons>
      </view>
    </view>
    <view class="option">
      <view>
        <image src="../static/myorder.png" mode="" style="width: 72rpx; height: 72rpx; vertical-align: middle; margin-right: 20rpx"></image>
        <text>我的订单</text>
      </view>
      <view>
        <uni-icons type="right" size="20"></uni-icons>
      </view>
    </view>
    <view class="option" @click="gomyshop">
      <view>
        <image src="../static/myshop.png" mode="" style="width: 72rpx; height: 72rpx; vertical-align: middle; margin-right: 20rpx"></image>
        <text>我的店铺</text>
      </view>
      <view>
        <uni-icons type="right" size="20"></uni-icons>
      </view>
    </view>
    <view class="option">
      <view>
        <image src="../static/myconnecter.png" mode="" style="width: 72rpx; height: 72rpx; vertical-align: middle; margin-right: 20rpx"></image>
        <text>我的联系人</text>
      </view>
      <view>
        <uni-icons type="right" size="20"></uni-icons>
      </view>
    </view>
    <view class="option" @click="gocollect">
      <view>
        <image src="../static/collection.png" mode="" style="width: 72rpx; height: 72rpx; vertical-align: middle; margin-right: 20rpx"></image>
        <text>收藏</text>
      </view>
      <view>
        <uni-icons type="right" size="20"></uni-icons>
      </view>
    </view>
    <view class="option" @click="gohelp">
      <view>
        <image src="../static/help.png" mode="" style="width: 72rpx; height: 72rpx; vertical-align: middle; margin-right: 20rpx"></image>
        <text>帮助</text>
      </view>
      <view>
        <uni-icons type="right" size="20"></uni-icons>
      </view>
    </view>
    <view class="option">
      <view>
        <image src="../static/setting.png" mode="" style="width: 72rpx; height: 72rpx; vertical-align: middle; margin-right: 20rpx"></image>
        <text>设置</text>
      </view>
      <view>
        <uni-icons type="right" size="20"></uni-icons>
      </view>
    </view>
    <!-- 底部组件 -->
    <footerCom style="position: fixed; bottom: 0"></footerCom>
    <!-- 解决固定定位的覆盖问题 -->
    <view style="position: relative; bottom: 0; width: 750rpx; height: 98rpx"></view>
  </view>
</template>

<script>
import footerCom from '@/components/shopfooter/shopfooter.vue';
export default {
  components: {
    footerCom
  },
  data() {
    return {};
  },
  methods: {
    // 跳转到我的店铺
    gomyshop() {
      uni.navigateTo({
        url: '/sub_my/myshop/myshop'
      });
    },
    //跳转到我的收藏
    gocollect() {
      uni.navigateTo({
        url: '/sub_my/myclollect/myclollect'
      });
    },
    // 跳转到帮助页面
    gohelp() {
      uni.navigateTo({
        url: '/sub_my/help/help'
      });
    }
  }
};
</script>

<style lang="less" scoped>
.container {
  .header {
    width: 750rpx;
    height: 264rpx;
    background: #61bdb2;
    margin-bottom: 30rpx;
    .headericon {
      box-sizing: border-box;
      padding: 0 32rpx;
      display: flex;
    }
    .userinfo {
      display: flex;
      margin-top: 44rpx;
      color: #fff;
      margin-left: 44rpx;
      .useravatar {
        width: 120rpx;
        height: 120rpx;
        border-radius: 50%;
        vertical-align: bottom;
      }
    }
  }
  .option {
    display: flex;
    box-sizing: border-box;
    width: 702rpx;
    height: 110rpx;
    background: #ffffff;
    border-radius: 20rpx 20rpx 0rpx 0rpx;
    justify-content: space-between;
    align-items: center;
    margin-left: 24rpx;
    padding: 20rpx 24rpx;
  }
}
</style>
